package com.wlb365.admin.modules.monitor.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wlb365.admin.modules.monitor.entity.MonitorInfo;
import com.wlb365.admin.modules.monitor.mapper.MonitorInfoMapper;
import com.wlb365.admin.modules.monitor.service.MonitorInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 接口监控信息 服务实现类
 * </p>
 *
 * @author
 * @since 2021-01-27 13:18:15
 */
@Service
public class MonitorInfoServiceImpl extends ServiceImpl
        <MonitorInfoMapper, MonitorInfo> implements MonitorInfoService {

    @Override
    public Page<MonitorInfo> listInfoPage(MonitorInfo info) {
        Page<MonitorInfo> page = new Page<>(info.getCurrent(), info.getSize());
        List<MonitorInfo> infos = baseMapper.selectInfoList(info, page);
        return page.setRecords(infos);
    }

}
